let eventEmitter = require('./event')
let util = require('util')

function Girl() {

}
util.inherits(Girl, eventEmitter)

let g = new Girl()
let cry = (thing) => {
  console.log('cry', thing)
}
let drink = (thing) => {
  console.log('drink', thing)
}

g.on('newListener', (type) => {
  console.log(type)
})

g.on('女生失恋', cry)

// g.off('女生失恋', cry)
g.once('喝酒', drink)
g.off('喝酒', drink)
g.emit('女生失恋', 'xx')
g.emit('喝酒', 'dahe')
g.emit('喝酒', 'xx')